<app-top [p_data]="pdata"  (onPreview)="onPreview()" (onSave)="finalSave()" (changeEmmit)="onTopChange($event)" (sortEmmit)="sort($event)" (changeScale)="changeScale($event)"></app-top>
<!--方便添加用-->
<!--<div nz-row style="margin: 10px 0;" [nzGutter]="10">-->
    <!--<div nz-col [nzSpan]="2">-->
        <!--<nz-input style="margin-bottom: 5px" [nzPlaceHolder]="'请输入n_id'" [(ngModel)]="n_id"></nz-input>-->
        <!--<nz-input [nzPlaceHolder]="'请输入g_id'" [(ngModel)]="g_id"></nz-input>-->
    <!--</div>-->
    <!--<div nz-col [nzSpan]="2" *ngFor="let data of comeList" >-->
        <!--<nz-input style="margin-bottom: 5px" [nzPlaceHolder]="'来源id'" [(ngModel)]="data.value"></nz-input>-->
        <!--<nz-input [nzPlaceHolder]="'来源名'" [(ngModel)]="data.label"></nz-input>-->
    <!--</div>-->
    <!--<div nz-col [nzSpan]="1">-->
        <!--<button nz-button [nzType]="'primary'" (click)="addCome()">添加来源</button>-->
    <!--</div>-->
<!--</div>-->
<!--end-->
<div id="scene-main" nz-row nzType="flex" nzJustify="center" (drop)="onDrop()">
    <app-left class="scene-left" (emitId)="dragStart($event)"  nz-col [nzSpan]="3"></app-left>
    <app-center [class.preview]="preview" class="scene-center"
                [scale] = "scale"
                [rect] = "rect"
                [node_id]="node_id"
                [g_id]="g_id"
                [gids]="gids"
                [n_type]="n_type"
                [n_name]="n_name"
                [type_name]="typename"
                [multiLogics]="multiLogic"
                [p_id]="pdata.p_id"
                [inLogics]="logic"
                [nextNodes]="nextNodes"
                [styleObject]="styleObject"
                [dataObject]="dataObject"
                [componentType]="componentType"
                [canDrag]="canDrag"
                (onDropEnd)="dropend($event)"
                nz-col [nzSpan]="18"
                (onMove)="onMove($event)"
                (onResize)="onResize($event)"
                (toggleEvent)="onToggleEvent($event)"
    ></app-center>
    <app-right class="scene-right"
               [rightStyleX]="rightStyleX"
               [rightStyleY]="rightStyleY"
               [rightStyleW]="rightStyleW"
               [rightStyleH]="rightStyleH"
               [rightData]="rightData"
               [comeList]="comeList"
               [componentToolType]="componentToolType"
               nz-col [nzSpan]="3"
               (onChildChange)="onToolChange($event)"
               (onChildChangeTxt)="onToolChangeTxt($event)"
               (onDelete)="onDelete()"
    ></app-right>
</div>
